
import logging
import yagmail
def log_set():
    logging.basicConfig(level=logging.DEBUG,format=("%(name)s_%(levelname)s_%(filename)s"),handlers=[
        logging.StreamHandler(),
        logging.FileHandler('log.txt')
    ])
def send_mali(a):
    mali=yagmail.SMTP(user='1179437714@qq.com',password='rjwyjnfifrrwffgh',host='smtp.qq.com')
    mali.send(to='1179437714@qq.com',subject='测试报告标题',contents='测试报告内容',attachments=a)

